import request from '@/utils/request'

// 查询会议记录列表
export function listTDwMeetingManagement(query) {
  return request({
    url: '/business/management/list',
    method: 'get',
    params: query
  })
}

// 查询会议记录详细
export function getTDwMeetingManagement(ctId) {
  return request({
    url: '/business/management/' + ctId,
    method: 'get'
  })
}

// 新增会议记录
export function addTDwMeetingManagement(data) {
  return request({
    url: '/business/management',
    method: 'post',
    data: data
  })
}

// 修改会议记录
export function updateTDwMeetingManagement(data) {
  return request({
    url: '/business/management/edit',
    method: 'post',
    data: data
  })
}

// 删除会议记录
export function delTDwMeetingManagement(ctId) {
  return request({
    url: '/business/management/delete/' + ctId,
    method: 'post'
  })
}

// 导出会议记录
export function exportTDwMeetingManagement(query) {
  return request({
    url: '/masterRecord/TDwMeetingManagement/export',
    method: 'get',
    params: query
  })
}


// 会议记录选择通知（不携带参加人员）
/*export function selectNotifiedPartyMember(query) {
  return request({
    url: '/masterRecord/TDwMeetingManagement/selectNotifiedPartyMember',
    method: 'get',
    params: query
  })
}*/
export function selectNotifiedPartyMember(query) {
  return request({
    url: '/mis/misTableData/list',
    method: 'get',
    params: query
  })
}

// 会议记录选择通知获取具体参加人员
export function selectNotifiedPartyMan(ctId) {
  return request({
    url: '/masterRecord/TDwMeetingManagement/selectNotifiedPartyMan/'+ctId,
    method: 'get',
  })
}

// 查询学习记录详情
export function studyInfo(ctId) {
  return request({
    url: '/spsBranch/news/' + ctId,
    method: 'get'
  })
}
